package thread.producterAndCustomer;

import java.nio.channels.SelectableChannel;
import java.util.*;

public class Test1 {
    public static void main(String[] args) {
        Object lock = new Object();
        Queue<UUID> queue = new LinkedList<UUID>();
        new Thread(new Customer(queue,lock)).start();
        new Thread(new Customer(queue,lock)).start();
        new Thread(new Customer(queue,lock)).start();
        new Thread(new Producter(queue,lock)).start();
        new Thread(new Producter(queue,lock)).start();
    }
}
